import request from './request'

const api = '/api';
// 获取登录信息
export const LoginApi = data => request.post(api + "/tokens",data);
// 部门列表
export const deparList= data => request.get(api + "/departments",{params:data});
// 添加部门
export const addDepar= data => request.post(api + "/departments",data);
// 修改部门
export const editDepar= data => request.put(api + "/departments/"+data.id,data);
// 删除部门
export const delDepar= data => request.delete(api + "/departments/"+data.id,{params:data});